{extend name="mainadmin@layouts/base" /}
{block name="main" }

<header class="header  b-b clearfix">
    <form id="forms" class="talbe-search form-inline "  method="post" action="{:url('getList')}" >
     <div class="page-breadcrumbs">
            <ul class="breadcrumb" >
                <li>
                    <i class="fa fa-ellipsis-v"></i>
                    <strong>{$listType=='waitCheck'?'注册待审':$listType=='waitCheckIdCard'?'实名待审':'团队列表'}</strong>
                </li>                                  
            </ul>
         {if condition="empty($start_date) == false"}
         <select name="time_type"  style="width: 130px;" data-toggle="select2" data-notsearch="true" data-change="submit">
             <option value="">选择时间类型</option>
             <option value="reg_time" {$search['time_type']=='reg_time'?'selected':''}>注册时间</option>
             <option value="check_time" {$search['time_type']=='check_time'?'selected':''}>审核时间</option>
             <option value="login_time" {$search['time_type']=='login_time'?'selected':''}>登陆时间</option>
         </select>
         <a class="btn btn-default time_sel" data-toggle="reportrange" data-change="submit">
             <i class="fa fa-calendar fa-lg"></i>
             <span></span> <b class="caret"></b>
             <input type="hidden" value="{$start_date} - {$end_date}" id="reportrange" name="reportrange" />
         </a>
         <select name="status"  style="width: 130px;" data-toggle="select2"  data-notsearch="true"  data-chang="submit">
             <option value="-1">所有状态</option>
             {volist name="statusArr" id="val" key="k"}
             <option value="{$k-1}">{$val}</option>
             {/volist}
         </select>
         {/if}
            <select name="proxy_id"  style="width: 130px;" data-toggle="select2" data-notsearch="true" data-chang="submit">
                  <option value="">所有层级</option>
                  {volist name="proxyLevel" id="vo"}
                        <option value="{$vo.proxy_id}">{$vo.proxy_name}</option>
                  {/volist}
              </select>

              <input type="hidden" name="listType" value="{$listType}">
              <input type="text" class="form-control input-large" value="{$search.keyword}" name="keyword" placeholder="会员ID/姓名/手机号" data-rule-required="true" />
              <button class="btn btn-sm btn-default-iq" type="submit" title="搜索"><i class="fa fa-search"></i></button>
              {if condition="$show_add == 1"}
              <a href="{:url('share')}" data-toggle="ajaxModal" title="邀请代理" class="btn btn-sm btnbtn-default fr  m-t-md m-r"><i class="fa fa-plus m-r-xs"></i>邀请代理</a>
              {/if}
     </div>
    </form>
</header>

<section class="scrollable wrapper w-f ">
    <section class="panel panel-default ">
        <div class="table-responsive " id="list_box">
            {include file="sys_admin/users/list" /}
        </div>
    </section>
</section>
<script>
    function ExportLog(){
        $('input[name="export"]').val('1');
        $('#forms').submit();
        $('input[name="export"]').val('0');
    }
</script>
{/block}
